package swu.cx.androidmvc.Model.DataBase

class dataBase private constructor(){
    val bookdao = dataBaseImpl()
    companion object{
        @Volatile private var instance:dataBase?=null
        fun getInstance()= instance?: synchronized(this){
            instance?:dataBase().also { instance = it }
        }
    }
}